<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title> {$setting.webname}- 收费记录</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="/public/static/favicon.ico"> <link href="/public/static/admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/public/static/admin/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="/public/static/admin/css/animate.css" rel="stylesheet">
    <link href="/public/static/admin/css/plugins/footable/footable.core.css" rel="stylesheet">
    <link href="/public/static/admin/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="/public/static/admin/css/plugins/switchery/switchery.css" rel="stylesheet">


</head>

<body class="gray-bg">
    <div class="row wrapper border-bottom white-bg page-heading">
        <div class="col-sm-4">
            <h2>收费记录</h2>
            <ol class="breadcrumb">
                <li>
                    <a href="{:url('Admins/admin')}">主页</a>
                </li>
                <li>
                    <strong>收费记录列表</strong>
                </li>
            </ol>
        </div>
        <div class="col-sm-8" style="text-align: right;line-height: 15px;margin-top:25px;">

        </div>
    </div>
    <div class="wrapper wrapper-content animated fadeIn">
        <div class="row">
            <div class="col-sm-12">
                <form action="" id="form1">
                <div class="row" style="margin-bottom: 20px">
                        <div class="col-sm-1">
                            <input type="text" placeholder="姓名" name="name" id="name" class="input form-control">
                        </div>
                        <div class="col-sm-1">
                            <select name="sex" id="sex" class="form-control">
                                <option value="" readonly selected>性别</option>
                                <option value="1">男</option>
                                <option value="0">女</option>
                            </select>
                        </div>
                        <div class="col-sm-1">
                            <input type="text" placeholder="民族" name="nation" id="nation" class="input form-control">
                        </div>
                        <div class="col-sm-1">
                            <select name="grade" id="grade" class="form-control">
                                <option value="" readonly selected>年级</option>
                            </select>
                        </div>
                        <div class="col-sm-2">
                            <input type="text" placeholder="学生号码" name="phone" id="phone" class="input form-control">
                        </div>
                        <div class="col-sm-3">
                            <input type="text" placeholder="父母电话" name="parenttel" id="parenttel" class="input form-control">
                        </div>

                        <div class="col-sm-3">
                            <input type="text" placeholder="身份证号" name="idcards" id="idcards" class="input form-control">
                        </div>
                </div>
                <div class="row" style="margin-bottom: 20px">

                        <div class="col-sm-3">
                            <input type="text" placeholder="毕业学校所在地址" id="schooladdress" name="schooladdress" class="input form-control">
                        </div>
                        <div class="col-sm-3">
                            <input type="text" name="schoolname" placeholder="学校名称" id="schoolname" class="input form-control">
                        </div>
                        <div class="col-sm-3">
                            <input type="text" placeholder="通讯地址" name="address" id="address" class="input form-control">
                        </div>
                        <div class="col-sm-3">
                            <select name="major" id="major33"  class="form-control">
                                <option value="" readonly selected>专业1</option>
                                {foreach $course as $v}
                                <option value="{$v.name}">{$v.name}</option>
                                {/foreach}
                            </select>
                        </div>
                </div>
                <div class="row" style="margin-bottom: 20px">
                        <div class="col-sm-3">
                            <input type="text" placeholder="预报名支付类型" name="paytype" id="paytype1" class="input form-control">
                        </div>
                        <div class="col-sm-2">
                            <input type="text" placeholder="预支付账号名称" name="payid" id="payid1" class="input form-control">
                        </div>
                        <div class="col-sm-1">
                            <input type="text" placeholder="负责老师" name="teacher" id="teacher1" class="input form-control">
                        </div>
                        <div class="col-sm-3">
                            <input type="text" placeholder="通知书编号" name="advice_note" id="advice_note" class="input form-control">
                        </div>
                        <div class="col-sm-2">
                            <button type="button" class="btn btn-success" style="width: 100%" id="search"> <i class="fa fa-search"></i> 综合搜索</button>
                        </div>
                        <div class="col-sm-1">
                            <a href="{:url('Money/jfExcel')}" ><button type="button" class="btn btn-info btn-sm btn-block">导出缴费表</button></a>
                        </div>
                </div>
                </form>
                <div class="tabs-container">
                    <div class="tab-content">

                        <!--新闻列表开始-->
                            <div class="table-responsive">
                                <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                                    <thead>
                                    <tr>
                                        <th data-toggle="true">编号</th>
                                        <th>年级</th>
                                        <th>姓名</th>
                                        <th>性别</th>
                                        <th>民族</th>
                                        <th>联系电话</th>
                                        <th>父母电话</th>
                                        <th>微信/QQ</th>
                                        <th>身份证号</th>
                                        <th>通讯地址</th>
                                        <th>专业1</th>
                                        <th>负责老师</th>
                                        <th>状态</th>
                                        <th>操作</th>
                                        <th data-hide="all">通知书编号</th>
                                        <th data-hide="all">毕业学校所在地</th>
                                        <th data-hide="all">毕业学校名称</th>
                                        <th data-hide="all">中考（模拟）成绩</th>
                                        <th data-hide="all">支付类型</th>
                                        <th data-hide="all">支付账号</th>
                                        <th data-hide="all">支付时间</th>
                                        <th data-hide="all">报考类型</th>
                                        <th data-hide="all">专业2</th>
                                        <th data-hide="all">是否服从调剂</th>
                                        <th data-hide="all">报名时间</th>
                                        <th data-hide="all">报名修改时间</th>
                                        <th data-hide="all">备注</th>
                                        <th data-hide="all">拒绝理由</th>
                                    </tr>
                                    </thead>
                                    <tbody id="datas">

                                    </tbody>
                                </table>
                            </div>
                        <!-- 列表结束 -->
                        <tfoot>
                        <tr>
                            <td colspan="9">
                                <ul class="pagination pull-left"></ul>
                            </td>
                        </tr>
                        </tfoot>
                    </div>
                </div>
            </div>
        </div>
       
    </div>

    <!-- 全局js -->
    <script src="/public/static/admin/js/jquery.min.js?v=2.1.4"></script>

    <script src="/public/static/admin/js/bootstrap.min.js?v=3.3.6"></script>

    <!-- iCheck -->
    <script src="/public/static/admin/js/plugins/iCheck/icheck.min.js"></script>
    <!-- Switchery -->
    <script src="/public/static/admin/js/plugins/switchery/switchery.js"></script>

    <!-- 自定义js -->
    <script src="/public/static/admin/js/content.js?v=1.0.0"></script>
    <script src="/public/static/admin/layui/layui.js"></script>
    <script src="/public/static/admin/js/plugins/footable/footable.all.min.js"></script>
    <script src="/public/static/admin/js/jquery.jqprint-0.3.js"></script>
    <script>
        $(document).ready(function() {
            $('.footable').footable();
            $(".tabs").attr("class","tab-pane");
        });
        var dateyear = new Date().getFullYear();
        for(i=dateyear;i>=dateyear-10;i--) {
            $("#grade").append($("<option value="+i+">"+i+"</option>"));
        }
        layui.use('layer', function(){ //独立版的layer无需执行这一句
            var $ = layui.jquery, layer = layui.layer; //独立版的layer无需执行这一句

            //查询内容
            $("#search").on("click",function(){
                 var form = $("#form1").serializeArray()
                 var data = {}
                 form.forEach((_this)=>{
                     data[_this.name] = _this.value;
                })
                $.post("{:url('Money/toSearch')}", data ,function(data){
                    if(data.code){
                        $("#datas").html(data.msg).trigger('footable_redraw');
                    }else{
                        top.layer.closeAll();
                        top.layer.msg(data.msg,{time:2000,shade:0.5},function(){
                            if(data.url){
                                window.location.href = data.url;
                            }
                        });
                    }
                });
            });
            $("#search").click();


        });


    </script>

    
    

</body>

</html>
